﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="admin_archivelist.aspx.cs" Inherits="Lawyer.Web.Admin.admin_archivelist" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
    <div class="main-content">
        <header>
                            <ul class="action-buttons clearfix">
                               <li><a href="admin_archiveadd.aspx" class="large button " >New Case</a></li>
                            </ul>
                            <h2>
                                Case List
                            </h2>
                    </header>
        <section class="container_6 clearfix">
                            <div class="grid_6">

                                
                                <asp:GridView ID="gridView" CssClass="display" runat="server" 
                                    AllowPaging="True" Width="100%" CellPadding="3"  OnPageIndexChanging ="gridView_PageIndexChanging"
                    BorderWidth="1px" DataKeyNames="ArchiveID" OnRowDataBound="gridView_RowDataBound"
                    AutoGenerateColumns="False" PageSize="100"  RowStyle-HorizontalAlign="Center" 
                                    OnRowCreated="gridView_OnRowCreated" onrowcommand="gridView_RowCommand">

<RowStyle HorizontalAlign="Center"></RowStyle>

                    <Columns>
                    
                            
		<asp:BoundField DataField="ArchiveID" HeaderText="ArchiveID" ReadOnly="false" Visible="false" /> 
		<%--<asp:HyperLinkField HeaderText="ArchiveName" DataNavigateUrlFields="ArchiveID" DataNavigateUrlFormatString="Show.aspx?id={0}"
                                DataTextField="Title"/>--%>
        <asp:BoundField DataField="Title" HeaderText="Case Name"   /> 
		<asp:BoundField DataField="CustomName" HeaderText="Custom Name"   /> 
		<asp:BoundField DataField="AgencyName" HeaderText="Agency Name"   /> 
		<asp:HyperLinkField HeaderText="Totol Fee(￡)" DataNavigateUrlFields="ArchiveID" DataNavigateUrlFormatString="admin_activity.aspx?id={0}"
                                DataTextField="MoneyCount"/>
		<asp:BoundField DataField="LawyerName" HeaderText="Case Worker" />
        
        <asp:TemplateField HeaderText="Option">
            <ItemTemplate>
                <asp:LinkButton ID="hpChooseLawyer" runat="server" Text="Choose Lawyer" NavigateUrl="admin_chooselawyer.aspx?id=" DataNavigateUrlFields="ArchiveID" Visible="false"></asp:LinkButton>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Status">
            <ItemTemplate>
                <asp:Label ID="lbStatus" runat="server" Text='<%#Eval("ShowStatus") %>'></asp:Label><br />
                <asp:LinkButton ID="lbnConfirm" runat="server" CommandArgument='<%#Eval("ArchiveID") %>' ></asp:LinkButton>
            </ItemTemplate>
        </asp:TemplateField>
                        </Columns>
                        
                </asp:GridView>
                            </div>
                            </section>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SideBar" runat="server">
<nav>
    <a class="chevron" href="#">»</a>
    <ul>
                                <li><a href="admin_archiveadd.aspx">New Case</a></li>
                                
                                <li class="<%=status0 %>"><a href="admin_archivelist.aspx?status=0">Pending Case</a></li>
                                <%--<li><a href="admin_archivelist.aspx?status=1">Assigned to me</a></li>--%>
                                <li class="<%=status2 %>"><a href="admin_archivelist.aspx?status=2">Ongoing  Case</a></li>
                                <li class="<%=status3 %>"><a href="admin_archivelist.aspx?status=3">Case Activities</a></li>
                                <li class="<%=status4 %>"><a href="admin_archivelist.aspx?status=4">Closed Case</a></li>

    </ul>
</nav>
</asp:Content>